<template>
  <div class="goodsDetail">
    <div>
      <div class="mt20">
        <span class="main_active">配送计划编码：</span>
        <el-input v-model="formInfo.Code" class="w400" />
      </div>
      <div class="mt20">
        <span class="main_active">出库单号：</span>
        <el-select v-model="formInfo.OBNo" class="w400" placeholder="请选择">
          <el-option
            v-for="item in OutboundData"
            :key="item.OBNo"
            :label="item.FullName"
            :value="item.OBNo"
          />
        </el-select>
      </div>
      <div class="mt20">
        <span class="main_active">配送计划名称：</span>
        <el-input v-model="formInfo.FullName" class="w400" />
      </div>
      <div class="mt20">
        <span class="main_active">订单状态：</span>
        <el-select
          v-model="formInfo.BillStatus"
          class="w400"
          placeholder="请选择"
        >
          <el-option
            v-for="item in OptionDeliveryType"
            :key="item.value"
            :label="item.lable"
            :value="item.value"
          />
        </el-select>
      </div>
      <div class="mt20">
        <span class="main_active">配送计划编号：</span>
        <el-input v-model="formInfo.DPNo" class="w400" />
      </div>
      <div class="mt20">
        <span class="main_active">配送地点：</span>
        <el-input v-model="formInfo.DeliveryAddress" class="w400" />
      </div>
      <div class="mt20">
        <span class="main_active">配送路线：</span>
        <el-input v-model="formInfo.DeliveryLine" class="w400" />
      </div>
    </div>
  </div>
</template>
<script>
  import { WmsGetPageData } from '@/api/form'
  export default {
    name: 'Detail',
    components: {},
    props: {
      form: {
        type: Object,
        default: () => {
          return {}
        },
      },
      chileddetail: {
        type: Array,
        default: () => {
          return []
        },
      },
    },
    emits: ['deletedchild'],
    data() {
      return {
        ItemList: [],
        itemChiledList: [],
        WmsData: [], // 选择物资数据
        formInfo: this.form,
        OutboundData: this.chileddetail,
        dialogChiled: false,
        layout: 'total, sizes, prev, pager, next, jumper',
        pageNo: 1,
        pageSize: 10,
        OptionDeliveryType: [
          {
            lable: '配送中',
            value: '1',
          },
          {
            lable: '未开始',
            value: '2',
          },
          {
            lable: '已完成',
            value: '3',
          },
        ],
      }
    },
    watch: {
      form(val) {
        this.formInfo = val
      },
    },
    methods: {},
  }
</script>
<style lang="scss" scoped>
  .goodsDetail {
    height: 300px;
  }
  .flex_align {
    display: flex;
    align-items: center;
  }
  .tableDetail {
    padding: 10px;
    .button-add {
      text-align: end;
      padding: 10px;
    }
  }
  .main_active {
    display: inline-block;
    width: 120px;
    text-align: right;
  }
  .mr20 {
    margin-right: 20px;
  }

  .w400 {
    width: 400px !important;
  }
  .mt20 {
    margin-top: 10px;
  }
  .mr10 {
    margin-right: 10px;
  }
  .w320 {
    width: 320px;
  }
  ::v-deep .el-scrollbar__wrap {
    overflow-x: auto;
    height: calc(100% + 20px); //多出来的20px是横向滚动条默认的样式
  }
  ::v-deep .el-scrollbar .el-scrollbar__wrap .el-scrollbar__view {
    white-space: nowrap;
    display: inline-block;
  }
  ::v-deep .el-table--scrollable-x .el-table__body-wrapper {
    overflow-x: hidden;
  }
  ::v-deep input[type='number']::-webkit-inner-spin-button,
  ::v-deep input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
  }
</style>
